package com.xls.commonlibrary.ad.adn.reward.bean;

import android.text.TextUtils;

// 调取广告后统一返回bean，给流判断上传服务器使用
public class AdBean {

    @Override
    public String toString() {
        return "AdBean{" +
                "showSuccess=" + showSuccess +
                ", ecpm='" + ecpm + '\'' +
                ", reward='" + reward + '\'' +
                ", requestId='" + requestId + '\'' +
                ", transId='" + transId + '\'' +
                ", isRewardValid=" + isRewardValid +
                ", adType='" + adType + '\'' +
                ", adn='" + adn + '\'' +
                '}';
    }

    private boolean showSuccess = false;// 广告播放是否成功
    private String ecpm = "-1";
    private String reward = "";// 激励回调信息
    private String requestId = "";// requestId
    private String transId = "";// transId
    private boolean isRewardValid;
    private String adType = "";// 广告类型
    private String adn = "";// 广告厂家


    public String getRequestId() {
        if (TextUtils.isEmpty(requestId)){
            return "";
        }else {
            return requestId;
        }
    }

    public String getTransId() {
        return transId;
    }

    public void setTransId(String transId) {
        this.transId = transId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public boolean isRewardValid() {
        return isRewardValid;
    }

    public void setRewardValid(boolean rewardValid) {
        isRewardValid = rewardValid;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String transId) {
        this.reward = transId;
    }

    public boolean isShowSuccess() {
        return showSuccess;
    }

    public void setShowSuccess(boolean showSuccess) {
        this.showSuccess = showSuccess;
    }


    public String getEcpm() {
        return ecpm;
    }

    public void setEcpm(String ecpm) {
        this.ecpm = ecpm;
    }

    public String getAdType() {
        return adType;
    }

    public void setAdType(String adType) {
        this.adType = adType;
    }

    public String getAdn() {
        return adn;
    }

    public void setAdn(String adn) {
        this.adn = adn;
    }
}
